//该文件专门创建整个应用的路由器
import VueRouter from 'vue-router'

//创建并暴露一个路由器
export default new VueRouter({
  routes: [
    // 首页
    {
      path: '/',
      redirect: '/home'
    },
    {
      path: '/home',
      component: () => import('../view/Home.vue')
    },
    // 有限空间
    {
      path: '/space',
      component: () => import('../view/Space.vue')
    },
    // 粉尘
    {
      path: '/dust',
      component: () => import('../view/Dust')
    },
    // 粉尘三级
    {
      path: '/dustThird',
      component: () => import('../view/DustThird')
    },
    // 危化品
    {
      path: '/danger',
      component: () => import('../view/Danger.vue')
    },
    // 一厂多租
    {
      path: '/factory',
      component: () => import('../view/Factory.vue')
    }
  ]
})
